<!DOCTYPE html>
<html lang="zh-ch">
<head>
	<meta charset='utf-8'>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="/bootstrap/js/bootstrap.min.js"></script>
	<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="/css/styles.css">
	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
	<title>饭否</title>
</head>

<body>
    <nav class="navbar navbar-default" style="background-image:url(/icon.png);background-repeat:no-repeat;background-position:10px center;" role="navigation">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <a class="navbar-brand" href="/" style="margin-left:25px;">饭否</a>
            </div>
                    
            <ul class="nav navbar-nav navbar-right">
                <p style="margin:15px 18px; float:left"><%= name%></p>
                <li class=" active">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog fa-spin"></i></a>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="#">用户设置</a></li>
                                <li><a href="/pay" target="_blank">友情捐赠</a></li>
                                <li><a href="#">发送反馈</a></li>
                                <li><a href="#">帮助</a></li>
                                <% if(typeof isAdmin!='undefined'&&isAdmin==1){ %>
                                <li><a href="/admin">管理</a></li>
                                <% } %>
                                <li><a href="/logout">退出</a></li>
                            </ul>
                        </li>
                    </ul>
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </nav>